<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <include file="Public/meta" />
</head>
<body>
<div class="info-center">
    <div class="page-header">
        <h3>当前位置：</h3>
        <div class="pull-left">
            <h4>【{$agent_name}】 ---> 【会员列表】</h4>
        </div>
        <span>推广会员链接: <input type="text" value="{$Think.server.HTTP_HOST}{:U('home/register/promoteUser',array('agent_id'=>$agent_id))}" style="width: 500px;"></span>
    </div>
    <div class="clearfix"></div>
    <h5>名下会员（共{$num}条记录）</h5>
    <form action="" method="post">
        <input type="text" name="keyword" value="{$keyword}" placeholder="请输入会员id或名称" />
        <input type="submit" value="搜索"/>
    </form>
    <div class="table-margin">
        <table class="table table-hover table-header" id="list-table">
            <thead>
            <tr>
                <td>编号</td>
                <td>会员账号</td>
                <td>手机号码</td>
                <td class="w20">加入时间（绑定代理商）</td>
                <td>运营商折扣率编辑记录</td>
                <td>状态</td>
            </tr>
            </thead>
            <tbody>

            <foreach name="list" item="vo">
                <tr>
                    <td>{$vo['id']}</td>
                    <td>{$vo['username']}</td>
                    <td>{$vo['phone']}</td>
                    <td>{$vo['add_agent_time']}</td>
                    <td>
                        <a href="{:U('admin/edit_operator',array('uid'=>$vo['id'],'agent_id'=>$vo['agent_id'],'is_agent'=>0))}" title="点击进入编辑" style="cursor:pointer" class="m">点击编辑</a> |
                        <a href="{:U('admin/get_rate_update_log',array('id'=>$vo['id'],'is_agent'=>0))}" title="查看修改记录" style="cursor:pointer" class="m">点击查看记录</a>
                    </td>
                    <td>
                        <if condition="$vo.status eq 1">
                            正常
                        <elseif condition="$vo.status eq 2"/>
                            <font color="blue">未审核</font>| <a href="{:U('admin/edit_operator',array('uid'=>$vo['id'],'agent_id'=>$vo['agent_id'],'is_agent'=>0))}"> 去审核</a>
                        <else/>
                            <font color="red">禁用</font>
                        </if>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <div class="pageers">
            <ul>
                {$show}
            </ul>
        </div>
    </div>
</div>
<script type="text/javascript" src="__ADMIN_JS__/common.js"></script>
</body>
</html>
